<%@page language="java"%>

<div id="header">
	<div id="nav">
		<%
		    String currentUser = (String) session.getAttribute("username");
		    if (currentUser == null)
		    {
				response.sendRedirect("login.jsp");
				return;
		    }
		%>
		<center>
			Current user: <%=currentUser%> <a href="logout.jsp">Logout</a>
		</center>
	</div>
</div>